<template>
	<div class="card">
		<el-card :shadow="props.shadow">
			<template v-if="props.title" #header>
				<div class="flex justify-between title">
					{{ title }}
					<slot name="topRight"></slot>
				</div>
			</template>
			<slot name="default"></slot>
		</el-card>
	</div>
</template>

<script lang="ts" setup>
import { toRefs, defineProps } from 'vue';
const props = defineProps({
	shadow: {
		type: String,
		default: 'hover',
	},
	title: {
		type: String,
		default: '',
	},
    content:{
        type: Object,
    }
});


const { title } = toRefs(props)
</script>
<style scoped lang="scss">
.card {
    margin-top: 10px;
	:deep(.el-card__header) {
		padding: 5px 10px;
        background-color: #F7F8FA;
	}

	:deep(.el-card__body) {
		padding: 20px 20px;
	}

    .title{
        font-weight: bolder;
    }
}
</style>
